/* ═══════════════════════════════════════════════════════════════
   🎨 CSS للموقع - ملف واحد فقط
   ═══════════════════════════════════════════════════════════════
   رابط الاستخدام:
   https://raw.githack.com/biqc-s/asir-tour/refs/heads/main/styles.css
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;700;800&display=swap');

/* الألوان الأساسية */
:root {
  --primary-color: #1B365D;
  --secondary-color: #8B2635;
  --wa-color: #27A148;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  --danger-color: #ff4d4d;
  --success-color: #34b656;
}

/* عام */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: auto;
  font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f5f5f5;
  -webkit-touch-callout: none;
}

/* ═══════════════════════════════════════════════════════════════
   📱 HEADER - رأس الصفحة
   ═══════════════════════════════════════════════════════════════ */

.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: #ffffff !important;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  z-index: 99999;
  display: flex;
  align-items: center;
  direction: rtl;
  font-family: 'Tajawal', sans-serif;
  padding: 0 12px;
  gap: 8px;
}

.nav-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

/* زر القائمة */
.menu-btn {
  background: #f8f9fa;
  border: none;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  font-size: 1.1rem;
  color: var(--primary-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
  -webkit-appearance: none;
}

.menu-btn:active {
  background: #e8e9eb;
  transform: scale(0.95);
}

/* علامة تجارية للمرشد */
.guide-brand {
  display: flex;
  flex-direction: column;
  text-align: center;
  flex: 1;
  padding: 0 8px;
  min-width: 0;
}

.guide-name {
  color: var(--secondary-color);
  font-weight: 800;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.guide-sub {
  color: var(--primary-color);
  font-size: 0.65rem;
  font-weight: 700;
  opacity: 0.8;
}

/* بطاقة الترخيص */
.license-card {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fdfdfd;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #f0f0f0;
  flex-shrink: 0;
  min-width: 0;
   flex-direction: row-reverse;
}

.gov-logo {
  height: 26px;
  width: auto;
  object-fit: contain;
}

.lic-info {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  border-right: 1px solid #eee;
  padding-right: 6px;
}

.lic-label {
  font-size: 0.5rem;
  color: #999;
  font-weight: 700;
  margin-bottom: 1px;
}

.lic-number {
  font-size: 0.7rem;
  color: var(--primary-color);
  font-weight: 800;
}

/* زر الواتساب */
.wa-btn {
  background: var(--wa-color);
  color: white !important;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  -webkit-appearance: none;
}

.wa-btn:active {
  transform: scale(0.95);
  box-shadow: 0 4px 12px rgba(39, 161, 72, 0.3);
}

/* ═══════════════════════════════════════════════════════════════
   🎯 SIDEBAR - القائمة الجانبية
   ═══════════════════════════════════════════════════════════════ */

/* طبقة التغطية */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 63, 1, 0.322);
  z-index: 100000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: none;
}

#overlay.active {
  opacity: 1;
  visibility: visible;
  display: block;
}

/* القائمة الجانبية */
.sidebar {
  position: fixed;
  top: 0;
  right: -85vw;
  width: 85vw;
  max-width: 280px;
  height: 100vh;
  background: #fff;
  z-index: 100001;
  transition: 0.4s ease;
  padding: 16px;
  direction: rtl;
  overflow-y: auto;
  box-shadow: -4px 0 12px rgba(112, 88, 88, 0.5);
}

.sidebar.active {
  right: 0;
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.sidebar-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 700;
  border-radius: 8px;
  transition: all 0.3s;
  border-bottom: 1px solid #f9f9f9;
}

.sidebar-list a:active {
  background: #f0f0f0;
}

/* زر الإغلاق */
.sidebar-close-btn {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--secondary-color);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  border-radius: 8px;
}

.sidebar-close-btn:active {
  background: rgba(139, 38, 53, 0.1);
}

/* ═══════════════════════════════════════════════════════════════
   📋 CONTENT - المحتوى
   ═══════════════════════════════════════════════════════════════ */

/* إزاحة المحتوى لتجنب تغطية الـ Header */
.content-wrapper {
  margin-top: 80px;
  padding: 20px;
}

.content-section {
  padding: 40px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.section-title {
  color: var(--primary-color);
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 40px;
}

.card-title {
  color: var(--primary-color);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 15px;
}

/* زر */
.btn {
  display: inline-block;
  background: var(--wa-color);
  color: white;
  padding: 15px 40px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(39, 161, 72, 0.3);
}

/* ═══════════════════════════════════════════════════════════════
   🏛️ FOOTER - الفوتر
   ═══════════════════════════════════════════════════════════════ */

.site-footer {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0f2442 100%);
  color: white;
  padding: 60px 20px 20px;
  direction: rtl;
  position: relative;
  overflow: hidden;
}

/* حاوية الفوتر */
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* القسم العلوي - معلومات المرشد */
.footer-top {
  text-align: center;
  padding-bottom: 40px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  height: 60px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-title {
  font-size: 2rem;
  font-weight: 800;
  color: white;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.footer-subtitle {
  font-size: 1rem;
  opacity: 0.85;
  font-weight: 600;
  margin: 0;
}

.footer-license {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-top: 10px;
  backdrop-filter: blur(10px);
}

.footer-license i {
  color: #ffd700;
  font-size: 1.1rem;
}

/* القسم الأوسط - الأعمدة */
.footer-middle {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
  text-align: right;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-column-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 800;
  color: white;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--secondary-color);
}

.footer-column-title i {
  color: var(--secondary-color);
  font-size: 1.3rem;
}

.footer-links,
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links li a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
  padding-right: 15px;
}

.footer-links li a::before {
  content: '◄';
  position: absolute;
  right: 0;
  opacity: 0;
  transition: all 0.3s ease;
}

.footer-links li a:hover {
  color: white;
  padding-right: 20px;
  transform: translateX(-5px);
}

.footer-links li a:hover::before {
  opacity: 1;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.footer-contact li i {
  color: var(--secondary-color);
  font-size: 1.1rem;
  min-width: 20px;
  text-align: center;
}

.footer-contact li a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-contact li a:hover {
  color: white;
  text-decoration: underline;
}

/* القسم السفلي - التواصل الاجتماعي وحقوق النشر */
.footer-bottom {
  padding-top: 30px;
  border-top: 2px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 25px;
  align-items: center;
}

/* أزرار التواصل الاجتماعي */
.footer-social {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 2px solid transparent;
}

.footer-social-link:hover {
  background: white;
  color: var(--primary-color);
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* ألوان خاصة لكل منصة */
.footer-social-link[aria-label="واتساب"]:hover {
  background: var(--wa-color);
  color: white;
  border-color: var(--wa-color);
}

.footer-social-link[aria-label="انستقرام"]:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white;
  border-color: #e6683c;
}

.footer-social-link[aria-label="تويتر"]:hover {
  background: #000000;
  color: white;
  border-color: #000000;
}

.footer-social-link[aria-label="سناب شات"]:hover {
  background: #FFFC00;
  color: #000000;
  border-color: #FFFC00;
}

.footer-social-link[aria-label="تيك توك"]:hover {
  background: #000000;
  color: #00f2ea;
  border-color: #00f2ea;
}

/* حقوق النشر */
.footer-copyright {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-copyright p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.footer-copyright i {
  font-size: 0.85rem;
}

.footer-credits {
  font-size: 0.85rem !important;
}

.footer-credits i.fa-heart {
  color: var(--secondary-color);
  animation: heartbeat 1.5s infinite;
}

/* أنيميشن القلب */
@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.2);
  }
  50% {
    transform: scale(1);
  }
}

/* ═══════════════════════════════════════════════════════════════
   💎 PROMO CARD - بطاقة العرض الترويجي
   ═══════════════════════════════════════════════════════════════ */

.promo-box {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 330px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(212, 175, 55, 0.3);
  z-index: 100002;
  direction: rtl;
  font-family: 'Tajawal', sans-serif;
  overflow: hidden;
  animation: slideInUp 0.5s ease-out;
}

/* Banner العلوي */
.promo-banner {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 12px 20px;
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.promo-close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.promo-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* محتوى البطاقة */
.promo-body {
  padding: 25px;
  text-align: center;
}

.promo-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary-color);
  box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
  animation: pulse 2s infinite;
}

.promo-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-color);
  margin: 15px 0 8px;
}

.promo-description {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 20px;
}

/* الأسعار */
.price-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.price-new {
  font-size: 2rem;
  font-weight: 900;
  color: var(--wa-color);
  line-height: 1;
}

.price-old {
  font-size: 0.95rem;
  color: #999;
  text-decoration: line-through;
  opacity: 0.7;
}

.price-badge {
  background: var(--secondary-color);
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 800;
}

/* زر CTA */
.promo-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--primary-color);
  color: white !important;
  text-decoration: none;
  padding: 16px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(27, 54, 93, 0.3);
  margin-bottom: 15px;
}

.promo-cta-btn:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(139, 38, 53, 0.4);
}

.promo-cta-btn i {
  font-size: 1.3rem;
}

/* رسالة الاستضافة */
.hosting-msg {
  background: rgba(39, 161, 72, 0.1);
  color: var(--wa-color);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 10px 15px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 15px;
  border: 1px dashed var(--wa-color);
}

.hosting-msg i {
  font-size: 1rem;
}

/* المميزات */
.promo-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #555;
  justify-content: center;
}

.feature-item i {
  color: var(--wa-color);
  font-size: 1rem;
}

/* أنيميشن الظهور */
@keyframes slideInUp {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* أنيميشن النبض */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* أنيميشن الإخفاء */
@keyframes slideOutDown {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(100px);
    opacity: 0;
  }
}

/* ═══════════════════════════════════════════════════════════════
   📱 Responsive - استجابة الشاشات
   ═══════════════════════════════════════════════════════════════ */

/* الشاشات الصغيرة جداً (أقل من 360px) */
@media (max-width: 360px) {
  .main-header {
    height: 65px;
    padding: 0 8px;
    gap: 4px;
  }

  .menu-btn, .wa-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .guide-name {
    font-size: 0.85rem;
  }

  .guide-sub {
    font-size: 0.6rem;
  }

  .gov-logo {
    height: 22px;
  }

  .lic-number {
    font-size: 0.6rem;
  }

  .lic-label {
    font-size: 0.45rem;
  }

  .license-card {
    padding: 3px 6px;
    gap: 4px;
  }
}

/* الهواتف العادية (أقل من 480px) */
@media (max-width: 480px) {
  .main-header {
    height: 68px;
  }

  .menu-btn, .wa-btn {
    width: 42px;
    height: 42px;
  }

  .guide-name {
    font-size: 0.85rem;
  }

  .gov-logo {
    height: 24px;
  }

  .lic-number {
    font-size: 0.65rem;
  }

  .lic-label {
    font-size: 0.48rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  /* Footer responsive */
  .footer-title {
    font-size: 1.5rem;
  }

  .footer-logo {
    height: 45px;
  }

  .footer-middle {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-social-link {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }

  /* Promo Card responsive */
  .promo-box {
    width: 92%;
    right: 4%;
    left: 4%;
    bottom: 20px;
  }

  .promo-title {
    font-size: 1rem;
  }

  .price-new {
    font-size: 1.75rem;
  }

  .promo-cta-btn {
    padding: 14px;
    font-size: 0.95rem;
  }
}

/* التابلت (481px إلى 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .main-header {
    height: 72px;
  }

  .menu-btn, .wa-btn {
    width: 44px;
    height: 44px;
  }

  .guide-name {
    font-size: 1rem;
  }

  /* Footer responsive - Tablet */
  .footer-middle {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* للشاشات الصغيرة جداً - Promo Card */
@media (max-width: 360px) {
  .promo-box {
    bottom: 10px;
  }

  .promo-body {
    padding: 20px 15px;
  }

  .promo-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .promo-features {
    font-size: 0.8rem;
  }
}

/* ═══════════════════════════════════════════════════════════════
   🎯 BEKAREM FOOTER - فوتر بيكارم للأعمال الذكية
   ═══════════════════════════════════════════════════════════════ */

.bekarem-footer {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #ffffff;
  padding: 50px 20px 30px;
  text-align: center;
  direction: rtl;
  font-family: 'Tajawal', sans-serif;
  position: relative;
  overflow: hidden;
}

.bekarem-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    var(--secondary-color) 0%,
    var(--primary-color) 50%,
    var(--wa-color) 100%);
}

/* Badge العرض الخاص */
.bekarem-badge-container {
  margin-bottom: 30px;
}

.bekarem-offer-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  color: white;
  padding: 12px 25px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
  animation: pulseGlow 2s infinite;
}

.bekarem-offer-badge i {
  font-size: 1.2rem;
  animation: bounce 1.5s infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
  }
  50% {
    box-shadow: 0 8px 35px rgba(255, 107, 107, 0.6);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* اسم العلامة التجارية */
.bekarem-brand-name {
  display: block;
  font-size: 2.2rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  text-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

/* الوصف */
.bekarem-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin: 0 auto 30px;
  padding: 0 20px;
}

.bekarem-description strong {
  color: #ffd700;
  font-weight: 800;
}

/* الفاصل */
.bekarem-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--wa-color) 50%,
    transparent 100%);
  margin: 30px auto;
}

/* معلومات الاستضافة */
.bekarem-hosting-info {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  margin-bottom: 25px;
}

.bekarem-hosting-info i {
  color: var(--wa-color);
  font-size: 1.1rem;
}

/* حقوق النشر */
.bekarem-copyright {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 480px) {
  .bekarem-brand-name {
    font-size: 1.8rem;
  }

  .bekarem-description {
    font-size: 0.95rem;
    padding: 0 10px;
  }

  .bekarem-offer-badge {
    font-size: 0.8rem;
    padding: 10px 20px;
  }
}
